package com.hzw.saas.api.storage.query;

import java.io.Serializable;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author EZ09
 * @since 07/29/2021
 */
@Data
public class OriginBlocksQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 对比块长度, 单位: byte
     */
    @ApiModelProperty(value = "对比块长度, 单位: byte", position = 1, required = true)
    @NotNull(message = "同步块长度不可为空")
    @Min(value = 1, message = "同步块长度不可小于1")
    private Integer blockLength;

    /**
     * 对比块步进值, 单位: byte, 默认为同步块长度
     */
    @ApiModelProperty(value = "对比块步进值, 单位: byte, 默认为对比块长度", position = 2)
    private Integer blockStep;

}
